import React from 'react';
import {Provider} from "react-redux";
import {Router} from "react-router-dom";
import {createBrowserHistory} from "history";
import utils from "./utils";
import Menu from "./pages/menu/index";
import Routes from "./routes/routes";
import Reducers from "./models/app";
import './App.css';

export const history = createBrowserHistory();

const store = utils.createStore(Reducers);

console.log(store.getState());

function App() {
    return (
        <Provider store={store}>
            <Router history={history}>
                <Menu/>
                <Routes/>
            </Router>
        </Provider>
    );
}

export default App;
